<?php
$user_name = $_POST["fname"];
$user_email = $_POST["email"];
$user_title = $_POST["title"];
$user_message = $_POST["message"];

$con = mysql_connect ("localhost" , "root" , "root");
if ( !$con )
{
	die ('could not connect: ' . mysql_error());
}
mysql_select_db("ncrdforg_ncrdf",$con);

$var = mysql_query("insert into contact values ('$user_name','$user_email','$user_title','$user_message') ");

if ( $var == 1 )
{
	echo "inserted";

}

else
{
		echo " not inserted";
}
mysql_close($con);

?>